<template>
  <div class="nav">
    <ul>
      <router-link tag="li" active-class="active" to="/home">
        <i class="iconfont icon-weibiaoti1"></i>
        <p>首页</p>
      </router-link>
      <router-link tag="li" active-class="active" to="/mine/myOrder">
        <i class="iconfont icon-wode2"></i>
        <p>个人中心</p>
      </router-link>
    </ul>
  </div>
</template>

<script>
export default {};
</script>

<style lang = "scss" scoped>
.nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  
    z-index: 999;
  ul {
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    li {
      width: 100%;
      text-align: center;
      background: #fff;
      height: 60px;
      display: flex;
      justify-content: center;
      flex-direction: column;
      &.active {
        color: #ed0d0d;
      }
      p {
        margin-top: 2px;
        font-size: 16px;
      }
      i {
        font-size: 26px;
      }
    }
  }
}
</style>